<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>支付页面</title>
		<style>
			.loading {
				width: 100vw;
				height: 100vh;
				position: fixed;
				left: 0;
				top: 0;
				z-index: 1;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		</style>
	</head>
	<body>
		<!-- <div class="loading">
			<img src="../images/load.gif" alt="" style="width: 160px;">
		</div> -->
	</body>
	<script>
		window.onload = function() {
			getInfo();
		}
		function getInfo() {
			let payForm = decodeURI(getQueryVariable('formStr'));
			if (payForm !== "") {
				let divForm = document.getElementsByTagName('divform')
				if (divForm.length) {
					document.body.removeChild(divForm[0])
				}
				const div = document.createElement('divform');
				div.innerHTML = payForm;
				document.body.appendChild(div);
				div.style.display = 'none';
				// document.forms[0].setAttribute('target', '_blank') 
				document.forms[0].submit();
			}
		}
		// js获取url参数
		function getQueryVariable(variable) {
			var loc = location.href;
			var n1 = loc.length;
			var n2 = loc.indexOf('=');
			var str = loc.slice(n2 + 1, n1);
			return str
		}
	</script>
</html>
